<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//----------------定义数组:方式二:对象---------------------------------------
			var arr = new Array(); //空数组
			var arr2 = new Array(1, 2, 3);//有初始化数据的数组
			//----------------存(下标，从0开始)---------------------------------------
			arr[0] = 1;
			arr[2] = 2;
			//----------------取(下标，从0开始)---------------------------------------
			console.log(arr[0]);
		</script>
	</head>
	<body>
	</body>
</html>
